package org.fast.develop.logicflow.runtime.enums;

import org.fast.develop.logicflow.runtime.PersistEnum2DB;

/**
 * @author czh
 * @version V1.0
 * @data Created on 2023-01-11 09:12
 */
public enum WebsocketStatusEnum implements PersistEnum2DB {

    STATUS_200("200", "正常"),
    STATUS_201("201", "正常并关闭"),
    STATUS_400("400", "参数错误"),
    STATUS_500("500", "执行错误"),
    ;

    private String value;
    private String display;

    WebsocketStatusEnum(String value, String display) {
        this.value = value;
        this.display = display;
    }


    public static WebsocketStatusEnum create(Object name){
        return PersistEnum2DB.create(WebsocketStatusEnum.class, name);
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }
}
